package com.dlc.felear.xiaoensale.helper;

import android.content.Context;
import android.util.Log;
import android.widget.ListView;

import com.dlc.felear.xiaoensale.adapter.OnceHistoryDispAdapter;
import com.dlc.felear.xiaoensale.entity.OnceDispEnty;

public class OnceDispHistory {
    private Context context;
    private ListView listView;
    private OnceHistoryDispAdapter adapter;

    public OnceDispHistory(Context context, ListView listView) {
        this.context = context;
        this.listView = listView;
        adapter=new OnceHistoryDispAdapter(context);
        listView.setAdapter(adapter);
    }

    public void saveInfo(OnceDispEnty info){
        Log.e("qindaji",JsonHelper.toJson(info));
        adapter.setItems(info);
    }
}
